package com.qf.controller;

import com.qf.demo.dto.UserDto;
import com.qf.demo.user.User;
import com.qf.service.IOrderService;
import com.qf.service.IUserService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("order")
public class OrderController {

    @Resource
    private IOrderService iOrderService;

    /**
     * 添加上数据
     * @return
     */
    @PostMapping("/createOrder")
    public Object createOrder() {
        return iOrderService.createOrder();
    }
}
